<template>
  <view class="content">
    <router-link url="/pages/mine/mine?a=1" mode="navigateTo" params="a=2b=3">
      <h1>我的</h1>
    </router-link>
    <hr />
    <router-link url="/pages/login/login">
      <h1>登录</h1>
    </router-link>
    <hr />
    <router-link url="/adwawwsdwa/qwes">
      <h1>错误页面</h1>
    </router-link>
    <hr />
    <button @click="goError">点击跳转错误页面</button>
  </view>
</template>

<script>
export default {
  components: {
    routerLink,
  },
  methods: {
    goError() {
      this.$navigate({
        url: "/2qwdasd",
        params: {
          msg: "url不存在",
        },
      });
    },
  },
};
</script>

<style></style>
